<!--WARNING: This file is maintained by ROO! IT WILL BE OVERWRITTEN unless you specify null	@RooWebScaffold(automaticallyMaintainView = false) in the governing controller-->
<jsp:directive.include file="/WEB-INF/jsp/includes.jsp"/>
<jsp:directive.include file="/WEB-INF/jsp/header.jsp"/>
<script type="text/javascript">dojo.require("dijit.TitlePane");</script>
<div dojoType="dijit.TitlePane" style="width: 100%" title="List All Employees">
    <c:if test="${not empty employees}">
        <table width="300px">
            <tr>
                <thead>
                    <th>Id</th>
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Birth Date</th>
                    <th/>
                    <th/>
                    <th/>
                </thead>
            </tr>
            <c:forEach items="${employees}" var="employee">
                <tr>
                    <td>${employee.id}</td>
                    <td>${fn:substring(employee.firstName, 0, 10)}</td>
                    <td>${fn:substring(employee.lastName, 0, 10)}</td>
                    <td>
                        <fmt:formatDate pattern="MM/dd/yyyy" type="DATE" value="${employee.birthDate}"/>
                    </td>
                    <td>
                        <form:form action="/roo/employee/${employee.id}" method="GET">
                            <input alt="Show employee" src="/roo/static/images/show.png" title="Show employee" type="image" value="Show employee"/>
                        </form:form>
                    </td>
                    <td>
                        <form:form action="/roo/employee/${employee.id}/form" method="GET">
                            <input alt="Update employee" src="/roo/static/images/update.png" title="Update employee" type="image" value="Update employee"/>
                        </form:form>
                    </td>
                    <td>
                        <form:form action="/roo/employee/${employee.id}" method="DELETE">
                            <input alt="Delete employee" src="/roo/static/images/delete.png" title="Delete employee" type="image" value="Delete employee"/>
                        </form:form>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </c:if>
    <c:if test="${empty employees}">No Employees found.</c:if>
</div>
<jsp:directive.include file="/WEB-INF/jsp/footer.jsp"/>
